<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<c:url var="url" value="/admin/role/edit.html"/>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Add role</title>
</head>

<body>
	<form:form id="roleForm" commandName="role" action="${url}" method="post">
		<table width="100%">
			<tr>
				<td width="150px">Role</td>
				<td><form:input path="role"/></td>
			</tr>
			<tr>
				<td>Description</td>
				<td><form:input path="description"/></td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input type="submit" value="Save"/>
					<input type="button" value="Cancel" onclick="window.location.href='<c:url value="/admin/role/list.html"/>'"/>
				</td>
			</tr>
		</table>
	</form:form>
</body>
</html>